#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <locale.h>
#include <iconv.h>
#include <glib.h>
#include <libsoup/soup.h>

#include "http.h"
#include "util.h"

//pkg-config --modversion glib-2.0
int main(int argc, char *argv[]) {
	GMainLoop *loop = NULL;

	setlocale(LC_ALL, "");
	setbuf(stdout, NULL );

	g_type_init();

	if (!g_thread_supported()) {
		g_thread_init(NULL );
	}
	http_start();

	loop = g_main_loop_new(NULL, TRUE);
	g_main_loop_run(loop);

	return EXIT_SUCCESS;
}
